gtk-demo: Make search progress visible again
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 01:46:44 +0000 (21:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 01:47:21 +0000 (21:47 -0400)
Set a progress fraction, so that the pulsing progress
in the search entry demo is actually visible.

demos/gtk-demo/search_entry.c

index 8905e4359b2fd764d4eb2f812709e84c5f33d3c5..ff63a42fe645bb2409c08eebd29b4157281283b9 100644 (file)
@@ -54,6 +54,7 @@ finish_search (GtkButton *button)
 static gboolean
 start_search_feedback (gpointer data)
 {
+  gtk_entry_set_progress_fraction (GTK_ENTRY (data), 0.1);
   search_progress_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 100,
                                            (GSourceFunc)search_progress, data,
                                            (GDestroyNotify)search_progress_done);